﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:local="clr-namespace:Edutainment"
	mc:Ignorable="d"
	x:Class="Edutainment.MainMenu"
	x:Name="UserControl"
	d:DesignWidth="940" d:DesignHeight="430">
    <UserControl.Resources>
        <Storyboard x:Key="StoryBoard">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="path" RepeatBehavior="Forever">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1.94" Value="7"/>
                <EasingDoubleKeyFrame KeyTime="0:0:3.76" Value="17"/>
                <EasingDoubleKeyFrame KeyTime="0:0:5.4" Value="23"/>
                <EasingDoubleKeyFrame KeyTime="0:0:7.34" Value="15"/>
                <EasingDoubleKeyFrame KeyTime="0:0:9.2" Value="7"/>
                <EasingDoubleKeyFrame KeyTime="0:0:10.5" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="path1" RepeatBehavior="Forever">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1.94" Value="-7"/>
                <EasingDoubleKeyFrame KeyTime="0:0:3.76" Value="-17"/>
                <EasingDoubleKeyFrame KeyTime="0:0:5.4" Value="-23"/>
                <EasingDoubleKeyFrame KeyTime="0:0:7.34" Value="-14"/>
                <EasingDoubleKeyFrame KeyTime="0:0:9.2" Value="-6"/>
                <EasingDoubleKeyFrame KeyTime="0:0:10.5" Value="2"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="ellipse" RepeatBehavior="Forever">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:3" Value="-28.667"/>
                <EasingDoubleKeyFrame KeyTime="0:0:6" Value="-56.667"/>
                <EasingDoubleKeyFrame KeyTime="0:0:9" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="ellipse" RepeatBehavior="Forever">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:3" Value="15.333"/>
                <EasingDoubleKeyFrame KeyTime="0:0:6" Value="-13.334"/>
                <EasingDoubleKeyFrame KeyTime="0:0:9" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="ellipse1" RepeatBehavior="Forever">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:3" Value="24.667"/>
                <EasingDoubleKeyFrame KeyTime="0:0:6" Value="47.334"/>
                <EasingDoubleKeyFrame KeyTime="0:0:9" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="ellipse1" RepeatBehavior="Forever">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:3" Value="20"/>
                <EasingDoubleKeyFrame KeyTime="0:0:6" Value="-10.667"/>
                <EasingDoubleKeyFrame KeyTime="0:0:9" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="ellipse2" RepeatBehavior="Forever">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:3" Value="-13.333"/>
                <EasingDoubleKeyFrame KeyTime="0:0:6" Value="29.334"/>
                <EasingDoubleKeyFrame KeyTime="0:0:9" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="ellipse2" RepeatBehavior="Forever">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:3" Value="-26"/>
                <EasingDoubleKeyFrame KeyTime="0:0:6" Value="-46"/>
                <EasingDoubleKeyFrame KeyTime="0:0:9" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="ellipse3" RepeatBehavior="Forever">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:3" Value="-21.333"/>
                <EasingDoubleKeyFrame KeyTime="0:0:6" Value="-38.666"/>
                <EasingDoubleKeyFrame KeyTime="0:0:9" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="ellipse3" RepeatBehavior="Forever">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:3" Value="-5.333"/>
                <EasingDoubleKeyFrame KeyTime="0:0:6" Value="-28"/>
                <EasingDoubleKeyFrame KeyTime="0:0:9" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="ellipse4" RepeatBehavior="Forever">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:3" Value="-21.333"/>
                <EasingDoubleKeyFrame KeyTime="0:0:6" Value="-3.333"/>
                <EasingDoubleKeyFrame KeyTime="0:0:9" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="ellipse4" RepeatBehavior="Forever">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:3" Value="-20.667"/>
                <EasingDoubleKeyFrame KeyTime="0:0:6" Value="-47.334"/>
                <EasingDoubleKeyFrame KeyTime="0:0:9" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)" Storyboard.TargetName="ellipse5" RepeatBehavior="Forever">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:3" Value="-17.333"/>
                <EasingDoubleKeyFrame KeyTime="0:0:6" Value="27.334"/>
                <EasingDoubleKeyFrame KeyTime="0:0:9" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)" Storyboard.TargetName="ellipse5" RepeatBehavior="Forever">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:3" Value="6.667"/>
                <EasingDoubleKeyFrame KeyTime="0:0:6" Value="6"/>
                <EasingDoubleKeyFrame KeyTime="0:0:9" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Storyboard_Merge"/>
    </UserControl.Resources>
    <UserControl.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard Storyboard="{StaticResource StoryBoard}"/>
            <BeginStoryboard Storyboard="{StaticResource Storyboard_Merge}"/>
        </EventTrigger>
    </UserControl.Triggers>


    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <TextBlock x:Name="title" Margin="44,-2,1,0" VerticalAlignment="Top" FontSize="34.667" Foreground="White" FontFamily="Segoe UI Light" Opacity="0.6" d:LayoutOverrides="GridBox" FontWeight="Light"><Run Language="de-de" Text="Sortieralgorithmen"/></TextBlock>
        <Grid x:Name="mainContent" Margin="0,66.5,0,-11.5" Height="375">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" MinHeight="499.032"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="45.85"/>
                <ColumnDefinition Width="Auto" MinWidth="248.272"/>
                <ColumnDefinition Width="50.124"/>
                <ColumnDefinition Width="Auto" MinWidth="250.462"/>
                <ColumnDefinition Width="51.877"/>
                <ColumnDefinition Width="Auto" MinWidth="246.876"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Button x:Name="___Button___btn_BubbleSort_" Grid.Column="1" Margin="0,0,0,160" Style="{DynamicResource ButtonBubbleSort}" Width="246" Click="doBubbleSort"/>
            <Button x:Name="___Button___btn_MergeSort_" Content="Button" Grid.Column="3" Margin="2.231,0,2.231,160" Style="{DynamicResource Button_MergeSort}" Width="246" Click="doMergeSort"/>
            <local:Sortieralgorithmen x:Name="QuickSort" Grid.Column="5" Margin="0,0,0,160" sortTitle="Quick Sort" Width="246"/>
            <Grid x:Name="bubbleSort_Movement" Grid.Column="1" Height="216.5" Margin="0" VerticalAlignment="Top">
                <Ellipse x:Name="ellipse" Fill="#FF333333" Margin="63.482,24.495,52.79,60.005" Stroke="White" StrokeThickness="5" Opacity="0.5" RenderTransformOrigin="0.5,0.5" IsHitTestVisible="False">
                    <Ellipse.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Ellipse.RenderTransform>
                </Ellipse>
                <Ellipse x:Name="ellipse1" Fill="#FF333333" Margin="28.148,105.833,0,33.333" Stroke="White" StrokeThickness="5" Opacity="0.5" HorizontalAlignment="Left" Width="77.334" RenderTransformOrigin="0.5,0.5" IsHitTestVisible="False">
                    <Ellipse.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Ellipse.RenderTransform>
                </Ellipse>
                <Ellipse x:Name="ellipse2" Fill="#FF333333" Margin="0,47.829,39.332,84.004" Stroke="White" StrokeThickness="5" Opacity="0.5" HorizontalAlignment="Right" Width="84.667" RenderTransformOrigin="0.5,0.5" IsHitTestVisible="False">
                    <Ellipse.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Ellipse.RenderTransform>
                </Ellipse>
                <Ellipse x:Name="ellipse3" Fill="#FF333333" Margin="0,0,30,57.337" Stroke="White" StrokeThickness="4" HorizontalAlignment="Right" Width="32.666" Height="32.666" VerticalAlignment="Bottom" Opacity="0.5" RenderTransformOrigin="0.5,0.5" IsHitTestVisible="False">
                    <Ellipse.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Ellipse.RenderTransform>
                </Ellipse>
                <Ellipse x:Name="ellipse4" Fill="#FF333333" Margin="0,0,12.667,12.668" Stroke="White" StrokeThickness="4" HorizontalAlignment="Right" Width="40" Height="40" VerticalAlignment="Bottom" Opacity="0.5" RenderTransformOrigin="0.5,0.5" IsHitTestVisible="False">
                    <Ellipse.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Ellipse.RenderTransform>
                </Ellipse>
                <Ellipse x:Name="ellipse5" Fill="#FF333333" Margin="0,0,66.795,16.667" Stroke="White" StrokeThickness="4" HorizontalAlignment="Right" Width="26.667" Height="26.667" VerticalAlignment="Bottom" Opacity="0.5" RenderTransformOrigin="0.5,0.5" IsHitTestVisible="False">
                    <Ellipse.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Ellipse.RenderTransform>
                </Ellipse>
            </Grid>
            <Grid x:Name="mergeSort_Movement" Grid.Column="3" Height="220" VerticalAlignment="Top" Width="246">
                <Path x:Name="path" Data="M4,2.4999999 L2.5,138.99965 L100,140.49965 L118,119.5 L103,98.5 L104.10845,45.015355 L80.774492,31.726433 L103,2.5 z" Fill="sc#1, 0.0331047662, 0.0331047662, 0.0331047662" Margin="22,29.5,0,44.5" Stroke="White" StrokeThickness="4" Opacity="0.5" Stretch="Fill" HorizontalAlignment="Left" Width="90.7" RenderTransformOrigin="0.5,0.5" IsHitTestVisible="False">
                    <Path.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Path.RenderTransform>
                </Path>
                <Path x:Name="path1" Data="M3.1384937,2.056343 L2,142.4014 L76.002092,143.94366 L93.664017,113.35321 L78.279079,100.76081 L79.120388,45.769422 L65.040651,26 L78.279079,2.0563431 z" Fill="#FF333333" Margin="0,29.5,14.054,44.5" Stroke="White" StrokeThickness="4" Opacity="0.5" HorizontalAlignment="Right" Width="95.664" RenderTransformOrigin="0.5,0.5" IsHitTestVisible="False">
                    <Path.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleX="-1" ScaleY="-1"/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform X="-4.9639999999999986"/>
                        </TransformGroup>
                    </Path.RenderTransform>
                </Path>
            </Grid>
        </Grid>
        <Image x:Name="backButton" HorizontalAlignment="Left" Height="21.818" Margin="12,12.5,0,0" VerticalAlignment="Top" Width="24" Source="btn_back.png" RenderTransformOrigin="0.5,0.5" TouchDown="backButton_TouchDown_1" MouseDown="backButton_MouseDown_1">

        </Image>


    </Grid>
</UserControl>